﻿Public Class ExportItemsBUS
    Private exportdao As New ExportItemsDAO()
    Public Function ExportItems_Delete_Forever(ByVal _date As Date) As Boolean
        Return exportdao.ExportItems_Delete_Forever(_date)
    End Function

    Public Function ExportItems_List() As DataSet
        Return exportdao.ExportItems_List()
    End Function

    Public Function ExportItems_Select(ByVal RecordID As Integer) As DataSet
        Return exportdao.ExportItems_Select(RecordID)
    End Function

    Public Function ExportItems_GetNextExportBill() As Integer
        Return exportdao.ExportItems_GetNextExportBill()
    End Function

    Public Function ExportItems_Insert(ByVal ExportBill As Integer, _
                                        ByVal TotalQuantity As Integer, _
                                        ByVal TotalSellPrice As Decimal, _
                                        ByVal VendorID As Integer, _
                                        ByVal Cashier As Integer, _
                                        ByVal Paied As Decimal, _
                                        ByVal debt As Decimal, _
                                        ByVal RateOfExchange As Integer, _
                                        ByVal ExportDate As Date, _
                                        ByVal VATTax As Double, _
                                        ByVal CreatedBy As String, _
                                        ByVal ExportItemID As Integer) As Integer
        Return exportdao.ExportItems_Insert(ExportBill, TotalQuantity, TotalSellPrice, VendorID, Cashier _
                                            , Paied, debt, RateOfExchange, ExportDate, VATTax, CreatedBy, ExportItemID)
    End Function

    Public Function ExportItemDetails_Delete(ByVal ExportItemDetailID As Integer) As Boolean
        Return exportdao.ExportItemDetails_Delete(ExportItemDetailID)
    End Function

    Public Function ExportItems_Delete_Temp(ByVal ExportItemID As Integer, _
                                            ByVal ModifiedOn As Date, _
                                            ByVal ModifiedBy As String) As Boolean
        Return exportdao.ExportItems_Delete_Temp(ExportItemID, ModifiedOn, ModifiedBy)
    End Function

    Public Function ExportItems_DSThu() As DataSet
        Return exportdao.ExportItems_DSThu()
    End Function

    Public Function ExportItems_Info() As DataSet
        Return exportdao.ExportItems_Info()
    End Function

    Public Function ExportItem_AccountsReceivable_TreeView() As DataSet
        Return exportdao.ExportItem_AccountsReceivable_TreeView()
    End Function

    Public Function ExportItems_AccountsReceivable_Select(ByVal ExportItemID As Integer) As DataSet
        Return exportdao.ExportItems_AccountsReceivable_Select(ExportItemID)
    End Function

    Public Function ExportItem_AccountsReceivable_Group(ByVal VendorID As Integer) As DataSet
        Return exportdao.ExportItem_AccountsReceivable_Group(VendorID)
    End Function

    Public Function ExportItem_AccountsReceivable_Delete(ByVal ExportItemID As Integer, _
                                                         ByVal Paied As Decimal, _
                                                         ByVal debt As Decimal, _
                                                         ByVal ModifiedOn As Date, _
                                                         ByVal ModifiedBy As String) As DataSet
        Return exportdao.ExportItem_AccountsReceivable_Delete(ExportItemID, Paied, debt, ModifiedOn, ModifiedBy)
    End Function

    Public Function ExportItems_TreeView() As DataSet
        Return exportdao.ExportItems_TreeView()
    End Function

    Public Function ExportItems_Select_AccountsReceivable(ByVal RecordID As Integer) As DataSet
        Return exportdao.ExportItems_Select_AccountsReceivable(RecordID)
    End Function






End Class
